<template>
  <div class="nav_record_wrap">
    <div class="nav_home " @click="router.push('/Home')">
      <van-icon name="wap-home-o" />
    </div>
    <div class="nav_text" @click="router.push('/Home')">
      {{title}}
    </div>
    <div class="nav_icon">
      <div class="nav_icon_seceh"  @click="router.push('/Search')">
        <van-icon name="search" />
      </div>
      <div class="nav_icon_cart" @click="router.push('/Cart')"> 
        <van-icon name="cart-o" /> 
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter()
const props = defineProps({
  title:{
    type:String,
    default:"网易严选"
  }
})
</script>

<style scoped lang="less">
  .nav_record_wrap{
    display: flex;
    text-align: center;
    height: 44px;
    line-height: 44px;
    justify-content: space-between;
    padding: 0 10px;
    // border-bottom: 1px solid #333;
    .nav_home{
      font-size: 24px;
    }
    .nav_text{
      font-size: 18px;
      font-weight: bolder;
    }
    .nav_icon{
    display: flex;
    font-size: 32px;
    .nav_icon_seceh{
      padding-right: 10px;
    }
  }
  }
  
</style>